{include file="/index/top"}
<style>
    .banner {
        position: absolute;
        z-index: 20;
        width: 100%;
        text-align: center;
        top: 0;
        bottom: 0;
        left: 0;
        right: 0;
        height: 30%;
        margin: auto;
        padding-top: 320px;
    }

    .banner-text {
        font-family: Pecita;
        color: #ffffff;
        font-size: 70px;
    }

    .banner-text > p {
        line-height: 150px;
    }
    .left{
        float: left;
    }
    .right{
        float: right;
    }
    .honour-content{
        width: 1300px;
        left: 0;
        right: 0;
        padding-top: 100px;
        padding-bottom: 100px;
        margin: auto;
        height: auto;
    }
    .honour-content-nav{
        width: 200px;
        text-align: right;
    }
    .honour-content-nav ul li{
        line-height: 30px;
        font-size: 18px;
        letter-spacing: 6px;
        margin-bottom: 20px;
        cursor: pointer;
    }
    /*.honour-content-nav ul li{*/
        /*line-height: 30px;*/
        /*font-size: 18px;*/
        /*letter-spacing: 6px;*/
        /*margin-bottom: 20px;*/
        /*cursor: pointer;*/
        /*border-left: 10px solid #009688;*/
        /*color: #009688;*/
    /*}*/
    .honour-content-nav>ul>li:hover{
        border-left: 10px solid #009688;
        color: #009688;
    }
    .honour-content-nav>ul>li:first-child>a{
        padding-left: -10px;
        color: #009688;
    }
    .honour-content-nav>ul>li:hover .a-color{
        color:inherit;!important;
    }
    a:hover{
        text-decoration: none;
    }
    .honour-content-content{
        width: 1000px;
    }
</style>
<div>
    <img src="__static__/images/apply.jpg" class="img-responsive" alt="Responsive image" width="100%">
    <div style="">
        <div style="position: absolute;display: block;top: 0;width: 100%">
            {include file="/index/topnav"}
            <div class="banner" id="child">
                <div class="banner-text layui-anim layui-anim-scaleSpring">
                    <p>网 院 计 算 机 协 会</p>
                    <p>光 荣 墙</p>
                    <h3>交流学术知识，传播创新理念，激发创新意识，弘扬创新精神</h3>

                </div>
            </div>
        </div>
    </div>
</div>
<div class="honour-content">
    <div class="honour-content-nav left">
        <ul>
            <!--<li><a class="a-color" href="/course">国家级</a></li>-->
            <li><a class="a-color" href="/course/honour">省级</a></li>
            <li><a class="a-color" href="/course">市级</a></li>
            <li><a class="a-color" href="/course/honour">院级</a></li>
            <li><a class="a-color" href="/course/honour">优秀工作者</a></li>
        </ul>
    </div>
    <div class="honour-content-content layui-row layui-col-space1 right">
        <div class="layui-col-md3">
            <div class="grid-demo grid-demo-bg1" style="border: 1px solid red">1/4</div>
        </div>
        <div class="layui-col-md3">
            <div class="grid-demo">1/4</div>
        </div>
        <div class="layui-col-md3">
            <div class="grid-demo grid-demo-bg1">1/4</div>
        </div>
        <div class="layui-col-md3">
            <div class="grid-demo">1/4</div>
        </div>
    </div>
</div>
<div style="clear: both;padding-top: 100px">
    {include file="/index/footer"}
</div>
<script>
    $(function () {
        $.ajax({
            type:"GET",
            url:"api/",
            datatype:"json",
            async:true,
            contentType:"application/json",
            headers:__AUTH__,
            success:function(resp){
                var newsdata = new Array();
                var homenewsdata = new Array();
                resp.data.forEach(function (item,index){
                    if(resp.data[index].type == 1){
                        homenewsdata.push(resp.data[index]);
                    }else{
                        newsdata.push(resp.data[index]);
                    }
                });
                console.log(homenewsdata);
                new Vue({
                    el: '#news',
                    data: {
                        baseUrl:"__static__",
                        newsdata: newsdata,
                        homenewsdata:homenewsdata
                    }
                });
            }
        })
    })
</script>